
<div title="Back to Profile" id="backlink">
  <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile">Back to Profile</a></p>
  <a href="<?php echo FRONT_SITE_URL; ?>user/profile"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/backarrow.png"></a> </div>
<div id="accountarea">
  <div class="greybgarea2 bgcolor-main">
    <h2>Edit Where I Grew Up</h2>
    <p>Update your information, click the Save button to save the information.</p>
    <form method="post" id="editcountryform">
      <input type="hidden" value="StateProvince" name="LocationStep">
      <input type="hidden" value="" name="SelectedCity">
      <input type="hidden" value="" name="SelectedStateProvinceCode">
      <div id="accountsettingsinfoarea">
        <div class="accountinforow">
          <p>Country:</p>
          <select name="SelectedCountryCode" id="SelectedCountryCode" class="largeselect">
            <option value="US"  <?php if($model['where_i_grew_up']=='US') echo 'selected';?>>United States of America                          </option>
            <option value="CA" <?php if($model['where_i_grew_up']=='CA') echo 'selected';?>>Canada                                            </option>
            <?php foreach($data_country as $item): ?>
              <option value="<?php echo $item['code'] ;?>" <?php if($model['where_i_grew_up']==$item['code']) echo 'selected';?>><?php echo $item['name'] ;?>                   </option>
            <?php endforeach ?>
            
          </select>
          <p></p>
        </div>

      </div>
      <div class="accountsettingsbtn"><a title="Save" class="button_style" href="#">Save</a>
        <br><br>
        <a style="padding-top:8px;padding-bottom:10px;" class="removewhereigrewup" href="<?php echo FRONT_SITE_URL; ?>user/profile/dropgrewup">Remove Where I Grew Up</a></div>
      <p class="clearfix">&nbsp;</p>
    </form>
  </div>
</div>
<script>
    $(document).ready(function () {
        $(".button_style").click(function () { $jq("#editcountryform").submit(); });
    });
</script>